import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

export const routes: Routes = [
  {
    path: 'index',
    loadChildren: 'app/main/index/index.module#IndexModule'
  },
  {
    path: 'applet-setting',
    loadChildren: 'app/main/applet-setting/applet-setting.module#AppletSettingModule'
  },
  {
    path: 'data-analysis',
    loadChildren: 'app/main/data-analysis/data-analysis.module#DataAnalysisModule'
  },
  {
    path: 'activity-manage',
    loadChildren: 'app/main/activity-manage/activity-manage.module#ActivityManageModule'
  },
  {
    path: 'store-dash',
    loadChildren: 'app/main/store-dash/store-dash.module#StoreDashModule'
  },
  {
    path: 'preview',
    loadChildren: 'app/main/preview/preview.module#PreviewModule'
  },
  {
    path: 'store-product',
    loadChildren: 'app/main/store-product/store-product.module#StoreProductModule'
  },
  // {
  //   path: 'store-setting',
  //   loadChildren: 'app/main/store-setting/store-setting.module#StoreSettingModule'
  // },
  {
    path: '',
    redirectTo: 'index',
    pathMatch: 'full'
  }
];

@NgModule({
  imports: [
    RouterModule.forChild(routes)
  ],
  exports: [
    RouterModule
  ],
  providers: []
})
export class AdminRoutingModule {
}

